package com.test.exception;

import lombok.Getter;

/**
 * @author 宋建华
 * @return
 * @date 2023-12-29
 */
@Getter
public class ServiceException extends RuntimeException {
    private final String code;
   public ServiceException (String msg){
       // 调用了 继承类RuntimeException的构造方法
       super(msg);
       this.code="500";
   }
   public ServiceException(String code,String msg){
       super(msg);
       this.code = code;
   }

}
